package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-13
 * Time: 13:39
 */
public class Test4 {
    public static void main(String[] args) {
        String str=new String("1234=4321567=77777&86&=99");
        String[] s=str.split("=");
        for(int i=0;i<s.length;i++){
            String[] ss=s[i].split("&");
            for(int j=0;j<ss.length;j++)
                System.out.print(ss[j]+" ");
        }
    }
    public static void main1(String[] args) {
        String str=new String("123,456,789,abc");
        String[] array=str.split(",");
        int n=array.length;
        for(int i=0;i<n;i++){
            System.out.print(array[i]+" ");
        }
    }
}
